package com.dd.cloud.user.entity.patient;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author xt
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "用户地址与患者地址关联表")
public class PatientAddressLink {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;


    /**
     * 用户地址表id
     */
    @Column(comment = "用户地址id")
    private Integer userAddressId;

    /**
     * 患者地址表id
     */
    @Column(comment = "就诊人地址id")
    private Integer medAddressId;

    /**
     * 状态 1正常 2删除
     */
    @Column(type = MySqlTypeConstant.TINYINT, comment = "状态")
    private Integer status;

}
